public class ArrayReverse {
    public static void main(String[] args) {
        int[] arr = {11, 22, 33, 44, 55, 66};
        int[] arr2 = new int[6];
        int i = 0;
        for (int length = arr.length; length > 0; length--, i++) {
             arr2[i] = arr[length - 1];
        }
        arr = arr2;
        for (int i1 = 0; i1 < arr.length; i1++) {
            System.out.println(arr[i1]);
        }
    }
}
